const { defineConfig } = require('@vue/cli-service');
const { name } = require('./package');

module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    host: '0.0.0.0',
    proxy: { // 配置代理
      '/gw': {
        target: 'http://10.9.53.57/', // http协议要加上 http://dsc.dahuasurvey.com/dsc/
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/gw': '/gw',
        },
      },
    },
  },
})
